export default function useScreenType() {
  const appStore = useAppStore()
  //根据屏幕分辨率变化判断屏幕类型pc ipad mobile
  if (window.innerWidth < 768) {
    appStore.setScreenType(3)
  } else if (window.innerWidth >= 768 && window.innerWidth <= 1024) {
    appStore.setScreenType(2)
  } else {
    appStore.setScreenType(1)
  }
}
